package vip.xiaonuo.smzq.modular.kcl.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.web.multipart.MultipartFile;
import vip.xiaonuo.smzq.modular.kcl.entity.Zlsc;
import com.baomidou.mybatisplus.extension.service.IService;
import vip.xiaonuo.smzq.modular.kcl.entity.vo.FileUpload;
import vip.xiaonuo.smzq.modular.kcl.entity.vo.Zlxqcx;

import java.util.List;

/**
 * 资料上传 服务类
 *
 * @author sqq
 * @since 2024-03-13
 */
public interface IZlscService extends IService<Zlsc> {

    Page<Zlsc> page(Zlsc zlsc);

    int addList(List<FileUpload> fileUploadList, String kqbh, Integer djflbm, Integer nd);

    /**
     * 文件上传
     * @param files 文件
     * @param zlsc 资料上传
     * @return 文件路径
     */
    List<Zlxqcx> fileUpload(List<MultipartFile> files, Zlsc zlsc);

    void fileShow(String path);
}
